package com.threadPool.providerConsumer;

/**
 * @author: dong peng
 * @date: 2019/6/3 18:34
 * @description:
 */

public class Test {

    public static void main(String[] args) {

        ShareResource shareResource = new ShareResource();

        Thread p1 = new Thread(new Producer(shareResource));
        p1.start();

        Thread c1 = new Thread(new Consumer(shareResource));
        c1.start();

        Thread c2 = new Thread(new Consumer(shareResource));
        c2.start();

        Thread c3 = new Thread(new Consumer(shareResource));
        c3.start();

    }
}
